package com.example.test.mapper;

import com.example.test.bean.UserBean;
import com.example.test.bean.UserImgBean;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface UserMapper {
    UserBean getInfo(String name,String password);
    //查询所有用户
    List<UserBean> getAllUser();
    List<UserBean> selectUser4Page();

    int insertUser(UserBean userBean);

    //删除用户
    int deleteUser(String id);

    UserBean getUserById(String id);
    //修改用户
    int updateUser(UserBean userBean);


    int insertUserImg(UserImgBean userImgBean);
    List<UserImgBean> getUserImgsById(String user_id);
    int delUserImg(String id);
}
